package com.zj.study.date;

import java.math.BigDecimal;
import lombok.extern.slf4j.Slf4j;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.Date;

/**
 * @author 赵赳
 * @since: 2021/8/13 9:07
 * @desc:
 */
@Slf4j
public class TimeTest {

    public static void main(String[] args) throws ParseException {
        //String time = "2020-07-07 17:49:37";
        //SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        //var expired = DateUtils.timeHasExpired(time);
        //System.out.println("expired = " + expired);
        //LocalDateTime localDateTime = LocalDateTime.now();
        //Date date = Date.from(localDateTime.atZone(ZoneId.systemDefault()).toInstant());
        //System.out.println(format.format(date));
        //
        //var zero = BigDecimal.ZERO;
        //System.out.println("zero = " + zero);


        var compareTo = BigDecimal.valueOf(0).compareTo(null);
        System.out.println("compareTo = " + compareTo);
    }

}
